<script>
import subAppMixins from "../../util/subAppMixins";

export default {
  name: "micro-old-workflow",
  mixins: [subAppMixins],
  data() {
    return {
      pageName: "",
      baseUrl: window.location.origin + "/oldWorkflowBase/",
      replaceCode: "micro-old-workflow"
    }
  },
}
</script>

<template>
  <basic-container v-loading="loading">
    <transition name="search">
      <div class="micro-app-con" v-if="this.baseUrl&&!errorObj">
        <micro-app :name='pageName'
                   :key="pageName"
                   :data="{commonApi:commonApi,templateList:templateList,functionObj:functionObj}"
                   :inline="true"
                   :url='baseUrl'
                   @datachange="dataChange"
                   @error="microError"
                   baseroute='/micro-old-workflow/'>
        </micro-app>
      </div>
      <div v-else style="font-size: 22px;color: red;padding: 20px">
        Error：{{errorObj.message}}
      </div>
    </transition>
  </basic-container>
</template>

<style scoped>

</style>
